package cn.iocoder.yudao.module.base.controller.admin.productgroup.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;
import java.util.*;
import java.util.*;
import java.math.BigDecimal;

@Schema(description = "管理后台 - 产品群组新增/修改 Request VO")
@Data
public class ProductGroupSaveReqVO {

    @Schema(description = "序号", requiredMode = Schema.RequiredMode.REQUIRED, example = "30861")
    private Long id;

    @Schema(description = "群组名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "王五")
    @NotEmpty(message = "群组名称不能为空")
    private String name;

    @Schema(description = "群组编号", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "群组编号不能为空")
    private String code;

    @Schema(description = "上级群组", requiredMode = Schema.RequiredMode.REQUIRED, example = "18144")
    @NotNull(message = "上级群组不能为空")
    private Long parentId;

    @Schema(description = "状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @NotNull(message = "状态不能为空")
    private Integer status;

    @Schema(description = "显示顺序", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "显示顺序不能为空")
    private Integer sort;

    @Schema(description = "备注", example = "随便")
    private String remark;

}